import { Injectable } from '@angular/core';
import { FlowNode } from '../models/work-flow';
import { BaseService } from './base.service';

@Injectable({
  providedIn: 'root'
})
export class FlowNodeService extends BaseService {

  getFlowNodeById(flowNodeId: string): Promise<FlowNode> {
    const url = `api/flownode/${flowNodeId}`;
    return this.get(url);
  }

}
